<?xml version="1.0"?>
<component name="org.nuxeo.ecm.platform.notification.service.NotificationContrib.override">

  <require>org.nuxeo.ecm.platform.notification.service.NotificationContrib</require>

  <extension point="notifications" target="org.nuxeo.ecm.platform.ec.notification.service.NotificationService">

    <notification autoSubscribed="true" availableIn="Workspace" channel="email" enabled="true" label="label.nuxeo.notifications.subscriptions.updated" name="Subscriptions updated" subject="New subscription" template="subscriptionsUpdated">
      <event name="subscriptionAssigned"/>
    </notification>

    <notification autoSubscribed="false" availableIn="Workspace" channel="email" enabled="true" label="label.nuxeo.notifications.modif" name="Modification" subject="${docTitle} has been modified by ${author}" template="modif">
      <event name="documentModified"/>
    </notification>

    <notification autoSubscribed="false" availableIn="Workspace" channel="email" enabled="true" label="label.nuxeo.notifications.create" name="Creation" subject="${docTitle} has been created by ${author}" template="modif">
      <event name="documentCreated"/>
    </notification>

    <notification autoSubscribed="true" availableIn="Section" channel="email" enabled="true" label="label.nuxeo.notifications.publication" name="Publication" subject="Document published" subjectTemplate="docPublishingSubject" template="publish">
      <event name="documentPublicationApproved"/>
      <event name="documentPublicationRejected"/>
      <event name="documentPublished"/>
    </notification>

    <notification autoSubscribed="false" availableIn="Section" channel="email" enabled="true" label="label.nuxeo.notifications.publication" name="PublicationOnClient" subject="Document published" template="publish">
      <event name="documentPublicationApproved"/>
      <event name="documentPublished"/>
    </notification>

    <notification autoSubscribed="false" availableIn="Workspace" channel="email" enabled="true" label="label.nuxeo.notifications.workflow" name="Workflow Change" subject="Workflow event" template="workflow">
      <event name="workflowNewProcessStarted"/>
      <event name="workflowProcessEnded"/>
      <event name="workflowProcessCanceled"/>
      <event name="workflowAbandoned"/>
      <event name="workflowTaskCompleted"/>
      <event name="workflowTaskRejected"/>
      <event name="workflowTaskAssigned"/>
    </notification>

    <notification autoSubscribed="false" availableIn="Workspace" channel="email" enabled="true" label="label.nuxeo.notifications.appReviewStarted" name="Approbation review started" subject="Review started for ${docTitle}" template="aprobationWorkflowStarted">
      <event name="workflowNewProcessStarted"/>
    </notification>

    <notification autoSubscribed="true" availableIn="Workspace" channel="email" enabled="true" label="label.nuxeo.notifications.taskAssigned" name="Task assigned" subject="Task Assigned for ${docTitle}" template="workflowTaskAssigned">
      <event name="workflowTaskAssigned"/>
    </notification>

    <notification autoSubscribed="true" availableIn="all" channel="email" enabled="true" label="label.nuxeo.notifications.email.document" name="Email document" subject="${mailSubject}" template="emailDocument">
      <event name="emailDocumentSend"/>
    </notification>

  </extension>

</component>
